﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" ng-app>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Simple app</title>
    <script src="../../Content/js/angular1.4.8.js"></script>
</head>
<body>
    双向绑定
    <input type="text" ng-model="name" placeholder="Your name" />
    <h1>Hello {{name}}</h1>
    <hr />
    双向对象绑定
    <div>
        <input type="text" placeholder="Your name" ng-model="person.name" />
        <h1>Hello {{person.name}}</h1>
    </div>
    <hr/>
    
</body>
</html>
